| Conditions | 1 |
| Paths | 1 |
| Total Lines | 25 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | /*jslint |
||
| 10 | var Lang = {}; |
||
| 11 | |||
| 12 | Lang.init = function () { |
||
| 13 | 'use strict'; |
||
| 14 | |||
| 15 | i18next |
||
| 16 | .use(i18nextXHRBackend) |
||
| 17 | .use(i18nextBrowserLanguageDetector) |
||
| 18 | .init({ |
||
| 19 | debug: false, |
||
| 20 | load: 'all', |
||
| 21 | resGetPath: 'lang/{{lng}}/{{ns}}.json', |
||
| 22 | fallbackLng: "en", |
||
| 23 | backend: { |
||
| 24 | loadPath: 'lang/{{lng}}/{{ns}}.json' |
||
| 25 | }, |
||
| 26 | detection: { |
||
| 27 | order: ['querystring', 'cookie', 'localStorage', 'navigator'], |
||
| 28 | lookupQuerystring: 'lang', |
||
| 29 | lookupCookie: 'i18next', |
||
| 30 | lookupLocalStorage: 'i18nextLng', |
||
| 31 | caches: ['localStorage', 'cookie'] |
||
| 32 | } |
||
| 33 | }, function (err) { |
||
| 34 | if (!err) { |
||
| 35 | jqueryI18next.init(i18next, $); |
||
| 97 |